# 格式化字符串

name='马冬梅'
age=18
score=98.5

print('姓名：%s,年龄：%d,成绩：%.1f' % (name, age, score))

print(f'姓名：{name}, 年龄：{age}, 成绩：{score}')

print('姓名:{0}，年龄:{1}，成绩:{2}'.format(name, age, score))

print('{0:,}'.format(987654321))
print('{0:,}'.format(987654321.8765))

print('{0:.2f}'.format(3.1415))
print('{0:.5}'.format("helloworld"))

print('{0:b}'.format(-1))
